package com.mzy.datepackage.M2022.Aug;

import lombok.Data;

import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author mzy
 * @Date 2022/8/8 14:23
 * @Version 1.0
 */
@Data
public abstract class LogModuleParent<T> implements IObserver {

    private final String name;
    private final String markerName;
    private final T obj;
    private final Map<String, Object> columnList;
    private final boolean alarmLog;

    protected LogModuleParent(String name, String markerName, T obj, Map<String, Object> columnList) {
        this(name, markerName, obj, columnList, false);
    }

    protected LogModuleParent(String name, String markerName, T obj, Map<String, Object> columnList, boolean alarmLog) {
        this.name = name;
        this.markerName = markerName;
        this.obj = obj;
        this.columnList = columnList;
        this.alarmLog = alarmLog;
    }
}